package com.example.TemplatePattern.service;

import com.example.TemplatePattern.SecurityReportTemplate;
import com.example.TemplatePattern.entry.Request;
import com.example.TemplatePattern.entry.Response;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <pre>
 * 功能描述：
 * </pre>
 *
 * @author: 李明杰
 * @date: 2022/12/28 21:04
 */
@Service
@Slf4j
public class UserUpdateService {
    @Resource
    private SecurityReportTemplate securityReportTemplate;

    public Response<?> modifyPasswordWithReportSafeAfter(Request request) {
        return securityReportTemplate.reportTemplate(() -> new Response<>(821, "modifyPasswordAdaptor.modifyPassword()", ""), request);
    }

    public Response<?> modifyPinWithReportSafeAfter(Request request) {
        return securityReportTemplate.reportTemplate(() -> new Response<>(535, "modifyPinAdaptor.modifyPin()", ""), request);
    }
}
